package com.xf.toy.dao;

import com.xf.toy.bean.Toy;
import com.xf.toy.bean.ToyExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface ToyMapper {
    int countByExample(ToyExample example);

    int deleteByExample(ToyExample example);

    int deleteByPrimaryKey(String toyCode);

    int insert(Toy record);

    int insertSelective(Toy record);

    List<Toy> selectByExample(ToyExample example);

    Toy selectByPrimaryKey(String toyCode);

    int updateByExampleSelective(@Param("record") Toy record, @Param("example") ToyExample example);

    int updateByExample(@Param("record") Toy record, @Param("example") ToyExample example);

    int updateByPrimaryKeySelective(Toy record);

    int updateByPrimaryKey(Toy record);
    
    List<String> getDistinctAge();
    
    List<String> getDistinctTheme();
}